import Cookies from 'js-cookie'

const TOKEN_KEY = 'token'
const UID_KEY = 'uid'
const NUMBER_KEY = 'number'
const ROUTER_KEY = 'router'
const USERNAME_KEY = 'username'
const PASSWORD_KEY = 'password'
const user_detail_id = 'user_detail_id'

export function getToken() {
  return Cookies.get(TOKEN_KEY)
}

export function setToken(token) {
  return Cookies.set(TOKEN_KEY, token)
}

export function removeToken() {
  return Cookies.remove(TOKEN_KEY)
}

export function getPASSWORD_KEY() {
  return Cookies.get(PASSWORD_KEY)
}

export function setPASSWORD_KEY(pass) {
  return Cookies.set(PASSWORD_KEY, pass)
}

export function removePASSWORD_KEY() {
  return Cookies.remove(PASSWORD_KEY)
}

export function getUSERNAME_KEY() {
  return Cookies.get(USERNAME_KEY)
}

export function setUSERNAME_KEY(username) {
  return Cookies.set(USERNAME_KEY, username)
}

export function removeUSERNAME_KEY() {
  return Cookies.remove(USERNAME_KEY)
}




// export function getRouter() {
//   return Cookies.get(ROUTER_KEY)
// }
// 
// export function setRouter(router) {
//   return Cookies.set(ROUTER_KEY, router)
// }
// 
// export function removeRouter() {
//   return Cookies.remove(ROUTER_KEY)
// }

export function getUid() {
  return Cookies.get(UID_KEY)
}

export function setUid(token) {
  return Cookies.set(UID_KEY, token)
}

export function removeUid() {
  return Cookies.remove(UID_KEY)
}

export function getNumber() {
  return Cookies.get(NUMBER_KEY)
}

export function setNumber(token) {
  return Cookies.set(NUMBER_KEY, token)
}

export function removeNumber() {
  return Cookies.remove(NUMBER_KEY)
}
